package tcu.ead2021.leety.iotsystem_mqtt.mapper.provider;

public class MQTTMapperProvider {

    /**
     * 动态生成SQL语句方法，根据传入table表名的不同，动态构建不同的SQL语句
     */
    public String CreateInsertSql(String table) {
        return "INSERT INTO `" + table + "` (time,template,power,I1,I2,I3,I4) VALUES (#{time}, #{template}, #{power}, #{I1}, #{I2}, #{I3}, #{I4})";
    }
}
